package cc.momas.momall.po;

import java.io.Serializable;
import java.util.Date;

public class TbItemParam  implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

    private Long id;
    private Long itemCatId;
    private Date created;
    private Date updated;
    private String paramData;
    
    // ---------
    private TbItemCat itemCat;

    public TbItemCat getItemCat() {
		return itemCat;
	}

	public void setItemCat(TbItemCat itemCat) {
		this.itemCat = itemCat;
	}
	
	@SuppressWarnings("unused")
	private String itemCatName;
	
//	public void setItemCatName(String itemCatName) {
//		this.itemCatName = itemCatName;
//	}

	public String getItemCatName() {
		if(this.itemCat == null) {
			return "";
		}else {
			return itemCat.getName();
		}
	}
	
	//----------

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getItemCatId() {
        return itemCatId;
    }

    public void setItemCatId(Long itemCatId) {
        this.itemCatId = itemCatId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getParamData() {
        return paramData;
    }

    public void setParamData(String paramData) {
        this.paramData = paramData == null ? null : paramData.trim();
    }
}